spectrogram: convert int16 to unsigned for correct range
authorMaxime Even <maximeeven@proton.me>
Mon, 8 Jul 2024 15:41:39 +0000 (17:41 +0200)
committerSebastian Ramacher <sramacher@debian.org>
Fri, 7 Mar 2025 06:31:22 +0000 (07:31 +0100)
commitf4e613b8b44fd957f0e39d3c7701ebbe3188e2a3
tree7cad48f939a5d3b616b4c9b96d232c52b6141cf7
parent107c32829e8cd60825f2387e5ed263bb6c21d194
spectrogram: convert int16 to unsigned for correct range

p_dest is used to set the height of the column, and it is used
as a variable defined from zero to 2^16 - 1. It is therefore
considered in the rest of the program as an unsigned int 16.
Moreover, the value that we put inside are a sum of two squared
real value, so they are necessarily positive.

(cherry picked from commit 94a8d152eadd53073305c95d221eca7623b4ed6c)

Gbp-Pq: Name 0016-spectrogram-convert-int16-to-unsigned-for-correct-ra.patch
modules/visualization/glspectrum.c
modules/visualization/visual/effects.c